package com.hiwhitley.himei.contract;

import com.hiwhitley.himei.entity.Benefit;
import com.hiwhitley.himei.entity.Meitu;
import com.hiwhitley.himei.mvpframe.BaseModel;
import com.hiwhitley.himei.mvpframe.BasePresenter;
import com.hiwhitley.himei.mvpframe.BaseView;

import java.util.List;

import rx.Observable;

/**
 * Created by hiwhitley on 2016/9/22.
 */

public interface MeituContract {

    interface Model extends BaseModel {
        Observable<Benefit> getBenefit(int page);
    }

    interface View extends BaseView {
        void showMeitus(List<Meitu> meitus);
    }

    abstract class Presenter extends BasePresenter<Model, View> {
        public abstract void loadBenefit(int page);
    }
}
